<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qwwrichtextedit.cpp -->
<head>
  <title>Qt 1.0: QwwRichTextEdit Class Reference</title>
  <link href="classic-4.6.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">wwWidgets Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230">
<a href="http://www.wysota.eu.org/wwwidgets"><img src="images/ww-logo.png" align="right" width="137" height="41" border="0" /></a>
</td></tr></table><h1 class="title">QwwRichTextEdit Class Reference<br /><span class="small-subtitle">[<a href="wwwidgets.html">wwWidgets</a> module]</span>
</h1>
<p>The QwwRichTextEdit widget provides a drop-in replacement for <a href="http://qt.nokia.com/doc/4.7/qtextedit.html">QTextEdit</a> that contains a toolbar for editing rich text data. <a href="#details">More...</a></p>
<pre> #include &lt;QwwRichTextEdit&gt;</pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
<p>Inherits <a href="http://qt.nokia.com/doc/4.7/qtextedit.html">QTextEdit</a>.</p>
<ul>
<li><a href="qwwrichtextedit-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#Action-enum">Action</a></b> { BoldAction, ItalicAction, UnderlineAction, LeftAlignAction, ..., FontSizeAction }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#Option-enum">Option</a></b> { NoOptions, Style, Alignment, FontFamily, FontSize, Color }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">flags </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#Option-enum">Options</a></b></td></tr>
</table>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li><div class="fn"><b><a href="qwwrichtextedit.html#options-prop">options</a></b> : Options</div></li>
</ul>
<ul>
<li><div bar="2" class="fn"></div>15 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qtextedit.html#properties">QTextEdit</a></li>
<li><div bar="2" class="fn"></div>2 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qabstractscrollarea.html#properties">QAbstractScrollArea</a></li>
<li><div bar="2" class="fn"></div>6 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qframe.html#properties">QFrame</a></li>
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#properties">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#QwwRichTextEdit">QwwRichTextEdit</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Options </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#options-prop">options</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#toolBarAction">toolBarAction</a></b> ( Action <i>act</i> ) const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>58 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qtextedit.html#public-functions">QTextEdit</a></li>
<li><div bar="2" class="fn"></div>17 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qabstractscrollarea.html#public-functions">QAbstractScrollArea</a></li>
<li><div bar="2" class="fn"></div>14 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qframe.html#public-functions">QFrame</a></li>
<li><div bar="2" class="fn"></div>217 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#public-functions">QWidget</a></li>
<li><div bar="2" class="fn"></div>13 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#public-functions">QPaintDevice</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#changeAlignment">changeAlignment</a></b> ( QAction * <i>a</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#setBold">setBold</a></b> ( bool <i>v</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#setColor">setColor</a></b> ( const QColor &amp; <i>c</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#setFont">setFont</a></b> ( const QFont &amp; <i>f</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#setItalic">setItalic</a></b> ( bool <i>v</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#setList">setList</a></b> ( bool <i>v</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#options-prop">setOptions</a></b> ( Options <i>opt</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#setUnderline">setUnderline</a></b> ( bool <i>v</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#updateCurrentBlockFormat">updateCurrentBlockFormat</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwrichtextedit.html#updateCurrentCharFormat">updateCurrentCharFormat</a></b> ( const QTextCharFormat &amp; <i>fmt</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>25 public slots inherited from <a href="http://qt.nokia.com/doc/4.7/qtextedit.html#public-slots">QTextEdit</a></li>
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#public-slots">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>7 signals inherited from <a href="http://qt.nokia.com/doc/4.7/qtextedit.html#signals">QTextEdit</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#signals">QWidget</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>25 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qtextedit.html#protected-functions">QTextEdit</a></li>
<li><div class="fn"></div>18 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qabstractscrollarea.html#protected-functions">QAbstractScrollArea</a></li>
<li><div class="fn"></div>3 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qframe.html#protected-functions">QFrame</a></li>
<li><div class="fn"></div>37 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="http://qt.nokia.com/doc/4.7/qabstractscrollarea.html#protected-slots">QAbstractScrollArea</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#protected-slots">QWidget</a></li>
<li><div class="fn"></div>1 protected type inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QwwRichTextEdit widget provides a drop-in replacement for <a href="http://qt.nokia.com/doc/4.7/qtextedit.html">QTextEdit</a> that contains a toolbar for editing rich text data.</p>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Action-enum"></a>enum QwwRichTextEdit::Action</h3>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::BoldAction</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Makes the text bold</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::ItalicAction</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Makes the text italic</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::UnderlineAction</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Makes the text underlined</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::LeftAlignAction</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Makes the text left aligned</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::RightAlignAction</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Makes the text right aligned</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::AlignCenterAction</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Makes the text aligned to the centre</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::JustifyAction</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">Makes the text justified</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::ColorAction</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">Changes the color of the text</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::FontFamilyAction</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Changes the font family of the text</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::FontSizeAction</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">Changes the font size of the text</td></tr>
</table></p>
<h3 class="flags"><a name="Option-enum"></a>enum QwwRichTextEdit::Option<br />flags QwwRichTextEdit::Options</h3>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::NoOptions</tt></td><td align="center" valign="top"><tt>0x0</tt></td><td valign="top">No options are set</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::Style</tt></td><td align="center" valign="top"><tt>0x01</tt></td><td valign="top">Text style</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::Alignment</tt></td><td align="center" valign="top"><tt>0x02</tt></td><td valign="top">Item alignment</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::FontFamily</tt></td><td align="center" valign="top"><tt>0x04</tt></td><td valign="top">Font family</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::FontSize</tt></td><td align="center" valign="top"><tt>0x08</tt></td><td valign="top">Font size</td></tr>
<tr><td valign="top"><tt>QwwRichTextEdit::Color</tt></td><td align="center" valign="top"><tt>0x10</tt></td><td valign="top">Text color</td></tr>
</table></p>
<p>The Options type is a typedef for <a href="qflags.html">QFlags</a>&lt;Option&gt;. It stores an OR combination of Option values.</p>
<hr />
<h2>Property Documentation</h2>
<h3 class="fn"><a name="options-prop"></a>options : <a href="qwwrichtextedit.html#Option-enum">Options</a></h3>
<p>This property holds this property holds the active set of options.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">Options </td><td class="memItemRight" valign="bottom"><b>options</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setOptions</b> ( Options <i>opt</i> )</td></tr>
</table>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QwwRichTextEdit"></a>QwwRichTextEdit::QwwRichTextEdit ( <a href="http://qt.nokia.com/doc/4.7/qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a rich text edit with a given <i>parent</i></p>
<h3 class="fn"><a name="changeAlignment"></a>void QwwRichTextEdit::changeAlignment ( <a href="http://qt.nokia.com/doc/4.7/qaction.html">QAction</a> * <i>a</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes alignment of the text to the one specified by action <i>a</i></p>
<h3 class="fn"><a name="setBold"></a>void QwwRichTextEdit::setBold ( bool <i>v</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes the bold attribute of the selected text to <i>v</i></p>
<h3 class="fn"><a name="setColor"></a>void QwwRichTextEdit::setColor ( const <a href="http://qt.nokia.com/doc/4.7/qcolor.html">QColor</a> &amp; <i>c</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes the color of the selected text to <i>c</i></p>
<h3 class="fn"><a name="setFont"></a>void QwwRichTextEdit::setFont ( const <a href="http://qt.nokia.com/doc/4.7/qfont.html">QFont</a> &amp; <i>f</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes the font of the selected text to <i>f</i></p>
<h3 class="fn"><a name="setItalic"></a>void QwwRichTextEdit::setItalic ( bool <i>v</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes the italic attribute of the selected text to <i>v</i></p>
<h3 class="fn"><a name="setList"></a>void QwwRichTextEdit::setList ( bool <i>v</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes the list attribute of the selected text to <i>v</i></p>
<h3 class="fn"><a name="setUnderline"></a>void QwwRichTextEdit::setUnderline ( bool <i>v</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Changes the underline attribute of the selected text to <i>v</i></p>
<h3 class="fn"><a name="toolBarAction"></a><a href="http://qt.nokia.com/doc/4.7/qaction.html">QAction</a> * QwwRichTextEdit::toolBarAction ( <a href="qwwrichtextedit.html#Action-enum">Action</a> <i>act</i> ) const</h3>
<p>Returns the <a href="http://qt.nokia.com/doc/4.7/qaction.html">QAction</a> object associated with action <i>act</i></p>
<h3 class="fn"><a name="updateCurrentBlockFormat"></a>void QwwRichTextEdit::updateCurrentBlockFormat ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Updates the format of the selected text</p>
<h3 class="fn"><a name="updateCurrentCharFormat"></a>void QwwRichTextEdit::updateCurrentCharFormat ( const <a href="http://qt.nokia.com/doc/4.7/qtextcharformat.html">QTextCharFormat</a> &amp; <i>fmt</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Updates actions to reflect the format specified by <i>fmt</i></p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%" align="left">Copyright &copy; 2007-2010 Witold Wysota 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">wwWidgets 1.0.0</div></td>
</tr></table></div></address></body>
</html>
